"fsutil file setshortname "Program Files" PROGRA~1"=>"Error:Access is denied."

I am trying to use the fsutil file setshortname to set "Program Files" to PROGRA~1,

but the system is giving me an "Error: Access is denied" response.

what I have typed:

Microsoft Windows [Version 6.3.9600]

(c) 2013 Microsoft Corporation. All rights reserved.

C:\Windows\system32>cd /d D:\

D:\>fsutil.exe 8dot3name set 0

The registry state is now: 0 (Enable 8dot3 name creation on all volumes).

D:\>fsutil file setshortname "Program Files" PROGRA~1

Error:  Access is denied.

And I try it in Safe Mode.It is also "Access is denied.".

Can someone help me?

November 26th, 2014 6:56pm

Hi TimFF,

This might be related with the UAC settings, check this thread:

give full permission for the users in program files folder

The steps in the above thread is not recommended.

For the short name usage, we may consider to create a directory-junction from PROGRA~1 to C:\Program Files:

With the following commands:

mklink /J "C:\PROGRA~1" "C:\Program Files"

Reference: Mklink

Best r

Free Windows Admin Tool Kit Click here and download it now
November 28th, 2014 2:50am

Your "Program Files" is currently used by the system - that's why you cannot set short name.

You can still do it by following these steps:

  1. Run Windows in Safe mode with Command Prompt
  2. cd to C:\
  3. fsutil file setshortname "Program Files" PROGRA~1
May 18th, 2015 7:13pm

This topic is archived. No further replies will be accepted.

Other recent topics Other recent topics